<template>
  <div class="buttons">
    <div v-if="userType==='Superuser'">
      <su-buttons :mode="mode"></su-buttons>
    </div>
    <div v-else-if="userType==='Manager'">
      <branch-buttons :mode="mode"></branch-buttons>
    </div>
    <div v-else-if="userType==='user'">

    </div>
  </div>
</template>

<script>
  import SuButtons from './Su/GDFunctionSuButtons'
  import BranchButtons from './Branch/GDFunctionBranchButton'
  export default {
    name: "GDFunctionButtons",
    props: ["userType"],
    components: {
      SuButtons,
      BranchButtons
    },
    computed: {
      mode() {
        return this.$store.state.select;
      }
    }
  }
</script>

<style scoped>
  .buttons {
    position: absolute;
  }
</style>
